﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JXC.Core.Models
{
    /// <summary>
    /// 退货单
    /// </summary>
    public class GoodsReturnedNote
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }//单号

        public DateTime TheReturnDate { get; set; }//退货日期

        [ForeignKey("TheCustomerTableId")]
        public Guid Client { get; set; }//客户 

        public string Currency { get; set; }//货币

        [ForeignKey("UserInfosId")]
        public Guid SalesPerson { get; set; }//销售人
        [ForeignKey("UserInfosId")]
        public Guid Acceptor { get; set; }//验收人

        public string Remark { get; set; }//备注

        [ForeignKey("UserInfosId")]
        public Guid Operator { get; set; }//操作员

        [ForeignKey("UserInfosId")]
        public Guid Auditor { get; set; }//审核人

        public int AuditStatus { get; set; }//审核状态

        public DateTime DateOfEntry { get; set; }//录入日期

        public DateTime DateOfApproval { get; set; }//审核日期

        public UserInfos UserInfos { get; set; }
        public TheCustomerTable TheCustomerTable { get; set; }


    }
}
